package cn.libinal.scloud.base.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author libinal
 * created at 2018/11/4 14:23
 */
@RestController
@RequestMapping("demo")
public class DemoController {

    @GetMapping(name = "欢迎", path = "welcome")
    public String welcome(String name) {
        return "Welcome: " + name;
    }

    @GetMapping(name = "获取订单", path = "order")
    public String order() {
        return "order: 1";
    }

}
